home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmCT_304_zWindow < prev    next >
Encoding:
Text File  |  1992-04-08  |  1.8 KB  |  71 lines

  1. /* %filename% -- window methods */
  2. /* Created %date% %time% by AppMaker */
  3.  
  4. /*    We recommend that you not modify this module and instead modify        */
  5. /*    its subclass, %WindName%.  The 'z' prefix on this module marks%        %*/
  6. /*    a module which is likely to be regenerated by AppMaker after you    */
  7. /*    make changes to the user interface.  The modules without the 'z'    */
  8. /*    prefix will not be regenerated by AppMaker unless you delete them.    */
  9. /*    Using a separate subclass to override the AppMaker-generated code    */
  10. /*    lets you regenerate code without losing your hand-coded changes.    */ 
  11.  
  12. #include <Commands.h>
  13. #include <Constants.h>
  14. #include <Global.h>
  15. #include <CDecorator.h>
  16. #include <CDesktop.h>
  17. #include <CDirector.h>
  18. #include <CError.h>
  19. #include <CSizeBox.h>
  20. #include <TBUtilities.h>
  21. #include "%appname%Data.h"
  22. %for each item gen include%
  23. #include "z%WindName%.h"
  24.  
  25. #define    %WindName%ID%    %%rsrcID%        /* resource ID for WIND template */
  26.  
  27. extern    CDecorator        *gDecorator;    /* Window dressing object    */
  28. extern    CDesktop        *gDesktop;        /* The enclosure for all windows */
  29. extern    CError            *gError;        /* The error handling object */
  30.  
  31. /*----------*/
  32. void    Z%WindName%::IZ%WindName%    (CDirector            *aSupervisor)
  33. {
  34.     CView            *enclosure;
  35.     CBureaucrat        *supervisor;
  36.     CSizeBox        *aSizeBox;
  37.  
  38.     %if procID = 3200%
  39.         IWindow (%WindName%ID, TRUE, gDesktop, aSupervisor);    // floating
  40.     %else%
  41.         IWindow (%WindName%ID, FALSE, gDesktop, aSupervisor);
  42.     %endif%
  43.     itsMainPane = NULL;
  44.  
  45.     enclosure = this;
  46.     supervisor = this;
  47.  
  48.     %for each item gen create%
  49.  
  50.     %if has growBox%
  51.         aSizeBox = new CSizeBox;
  52.         aSizeBox->ISizeBox (enclosure, supervisor);
  53.     %endif%
  54.     
  55. } /* IZ%WindName% */
  56.  
  57. %for each item gen zAuxiliaryMethod%
  58. /*----------*/
  59. void Z%WindName%::DoCommand        (long        theCommand)
  60. {
  61.     switch (theCommand) {
  62.  
  63.         default:
  64.                 inherited::DoCommand (theCommand);
  65.             break;
  66.     } /* switch */
  67.  
  68. } /* DoCommand */
  69.  
  70. /* %filename% */
  71.